package com.jeesite.modules.rt.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 帮助中心Entity
 * @author 李寒冰
 * @version 2024-10-24
 */
@Table(name="rt_ask", alias="a", label="帮助中心信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="title", attrName="title", label="title", queryType=QueryType.LIKE),
		@Column(name="content", attrName="content", label="content"),
		@Column(name="create_time", attrName="createTime", label="create_time", isUpdateForce=true),
		@Column(name="is_show", attrName="isShow", label="is_show", isUpdateForce=true),
	}, orderBy="a.id DESC"
)
public class RtAsk extends DataEntity<RtAsk> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// title
	private String content;		// content
	private Date createTime;		// create_time
	private String isShow;

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public RtAsk() {
		this(null);
	}
	
	public RtAsk(String id){
		super(id);
	}
	
	@Size(min=0, max=255, message="title长度不能超过 255 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}